package com.guigu.controller;

import com.guigu.pojo.ReturnCase;
import com.guigu.service.ReturnCaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("returnCase/")
public class ReturnCaseController {

    @Autowired
    ReturnCaseService caseService;

    @GetMapping("returnCase.action/{state}")
    List<ReturnCase> queryCaseByShopState(@PathVariable Integer state){
        return caseService.queryCaseByShopState(state);
    }
}


